home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / UnsignedNumberDocumentBeanInfo.java < prev    next >
Text File  |  1998-10-21  |  2KB  |  42 lines

  1. package com.symantec.itools.swing.models;
  2.  
  3. import java.beans.IntrospectionException;
  4. import java.beans.PropertyDescriptor;
  5. import com.symantec.itools.vcafe.beans.PropertyDescriptorAttributes;
  6. import com.symantec.itools.vcafe.beans.PropertyHelpIDs;
  7.  
  8. public class UnsignedNumberDocumentBeanInfo
  9.     extends com.symantec.itools.swing.models.ModelBeanInfo
  10. {
  11.     protected Class getBeanClass()
  12.     {
  13.         return UnsignedNumberDocumentClass;
  14.     }
  15.     
  16.     public PropertyDescriptor[] getPropertyDescriptors()
  17.     {
  18.         try
  19.         {
  20.             PropertyDescriptor defaultValueEnabled = new PropertyDescriptor("defaultValueEnabled",UnsignedNumberDocumentClass);
  21.             defaultValueEnabled.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.UNSIGNEDNUMBERDOCUMENT_DEFAULT_VALUE_ENABLED_HELP_ID));
  22.             
  23.             PropertyDescriptor defaultValue = new PropertyDescriptor("defaultValue",UnsignedNumberDocumentClass);
  24.             defaultValue.setValue(PropertyDescriptorAttributes.WIN_HELP_ATTRIBUTE, new Integer(PropertyHelpIDs.UNSIGNEDNUMBERDOCUMENT_DEFAULT_VALUE_HELP_ID));
  25.             
  26.             PropertyDescriptor[] rv = {
  27.                     defaultValueEnabled,
  28.                     defaultValue };
  29.         
  30.             return rv;
  31.         }
  32.         catch(IntrospectionException e)
  33.         {
  34.             e.printStackTrace();
  35.         }
  36.         
  37.         return null;
  38.     }
  39.     
  40.     protected static final Class UnsignedNumberDocumentClass = UnsignedNumberDocument.class;
  41. }
  42.